package cn.kuaipan.android.sdk.entity;

import com.umeng.android.utils.KuaiPanManager;

import android.app.Application;

/** 
 * @author liubin 
 * @date：Mar 9, 2013 1:17:53 PM  
 */
public class MyApplication extends Application {


	private static Application instance;
	private static KuaiPanManager manager;
	@Override
	public void onCreate() {
		super.onCreate();
		instance = this;
		manager = new KuaiPanManager();
	}
	
	public static Application getInstance() {
		
		return instance;
		
	}
	
	public static KuaiPanManager getManager(){
		
		if(manager == null){
			synchronized (MyApplication.class) {
				if(manager == null){
					manager = new KuaiPanManager();
				}
			}
		}
		return manager;
	}
}
